package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.ContentBlock;
import com.nbsaas.boot.cms.api.domain.response.ContentBlockResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 内容块-实体对象转化成响应对象
*/

public class ContentBlockResponseConvert  implements Converter<ContentBlockResponse,ContentBlock> {

    @Override
    public ContentBlockResponse convert(ContentBlock source) {
        ContentBlockResponse  result = new  ContentBlockResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

